﻿<?xml version="1.0" encoding="utf-8" ?>
<c2eventsheet>
    <!--All the 'name' attributes are ignored by Construct 2 - they are there for readability only.-->
    <name>Title events</name>
    <events>
        <comment>Start playing some music.</comment>
        <event-block sid="467">
            <conditions>
                <condition id="-2" name="On start of layout" sid="381" type="System" />
            </conditions>
            <actions>
                <action id="-7" name="Scroll to position" sid="382" type="System">
                    <param id="0" name="X">WindowWidth / 2</param>
                    <param id="1" name="Y">WindowHeight / 2</param>
                </action>
                <action id="-16" name="Wait" sid="383" type="System">
                    <param id="0" name="Seconds">1.0</param>
                </action>
                <action id="0" name="Play" sid="384" type="Audio">
                    <param id="0" name="Audio file">EpicArpg</param>
                    <param id="2" name="Loop">0</param>
                    <param id="3" name="Volume">0</param>
                    <param id="1" name="Tag (optional)">&quot;music&quot;</param>
                </action>
            </actions>
        </event-block>
        <comment>Flash the &apos;Press space to begin&apos; text.</comment>
        <event-block sid="468">
            <conditions>
                <condition id="-6" name="Every X seconds" sid="385" type="System">
                    <param id="0" name="Interval (seconds)">1.0</param>
                </condition>
            </conditions>
            <actions>
                <action id="-15" name="Set visible" sid="386" type="BeginText">
                    <param id="0" name="Visibility">0</param>
                </action>
                <action id="-16" name="Wait" sid="387" type="System">
                    <param id="0" name="Seconds">0.3</param>
                </action>
                <action id="-15" name="Set visible" sid="388" type="BeginText">
                    <param id="0" name="Visibility">1</param>
                </action>
            </actions>
        </event-block>
        <comment>Go to the game layout when pressing spacebar or when touching the screen.</comment>
        <event-block sid="469">
            <conditions>
                <condition id="0" name="On key pressed" sid="389" type="Keyboard">
                    <param id="0" name="Key">32 (Space)</param>
                </condition>
            </conditions>
            <actions>
                <action id="-2" name="Go to layout" sid="390" type="System">
                    <param id="0" name="Layout">Game</param>
                </action>
                <action id="6" name="Stop" sid="391" type="Audio">
                    <param id="0" name="Tag">&quot;music&quot;</param>
                </action>
            </actions>
        </event-block>
        <event-block sid="470">
            <conditions>
                <condition id="0" name="On any touch start" sid="392" type="Touch" />
            </conditions>
            <actions>
                <action id="-2" name="Go to layout" sid="393" type="System">
                    <param id="0" name="Layout">Game</param>
                </action>
                <action id="6" name="Stop" sid="394" type="Audio">
                    <param id="0" name="Tag">&quot;music&quot;</param>
                </action>
            </actions>
        </event-block>
        <comment>Keep the viewport centered on the menu even if the window is resized.</comment>
        <event-block sid="471">
            <conditions>
                <condition id="-1" name="Every tick" sid="395" type="System" />
            </conditions>
            <actions>
                <action id="-8" name="Scroll to object" sid="396" type="System">
                    <param id="0" name="Object">Background3</param>
                </action>
            </actions>
        </event-block>
    </events>
</c2eventsheet>
